<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Object identityObj = request.getAttribute("identity");
Object passwordObj = request.getAttribute("password");
String identity = (null == identityObj?"":identityObj.toString());
String password = (null == passwordObj?"":passwordObj.toString());

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
  	<%
  	Object ssoerror = request.getAttribute(com.xjj.sso.client.SSOConstants.SSO_SERVER_ERROR);
  	if(null != ssoerror)
  	{
  		out.print("用户名或密码错误");
  	}
  	%>
  	<br/>
    <form action="<%=path%>/jsp/ssoLogon" method="post">
    
    	<INPUT TYPE="text" NAME="identity" value="zhanghejie"><br/>
    	<INPUT TYPE="password" NAME="password" value="123456"><br/>
    	<INPUT TYPE="hidden" NAME="backURL" value="http://localhost:8080/xjj_sso_client/jsp/index.jsp"><br/>
    	
		<INPUT TYPE="submit" value="登陆">
    </form>
  </body>
</html>
